package com.kehutong.scheduled;

import org.coraframework.inject.Inject;
import org.coraframework.inject.Singleton;
import org.coraframework.threadpool.ThreadPool;
import org.coraframework.util.Ioc;

import com.coraframework.quartz.Job;
import com.coraframework.quartz.JobExecutionContext;
import com.kehutong.common.DailyUtil;

@Singleton
public class ScheduledJob implements Job {
	
	public ScheduledJob() {
		Ioc.injectMembers(this);
	}
	
//	@Inject
//	private PerSionalService persionalService;
	@Inject
	private ThreadPool threadPool;

	@Override
	public void execute(JobExecutionContext context) {
		this.schedOpinion(context);
	}
	
	/**
	 * 舆情定时任务
	 * @param context
	 */
	private void schedOpinion(JobExecutionContext context) {
		DailyUtil.nextZeroPoint();
		threadPool.execute(()->{
//			persionalService.initOpinion();
		});
	}
	

}
